<template lang="pug">
  div
    .form-element-button(style="display:inline-block" v-if="config && config.label" :class="{'float-right': config && config.position === 'right'}")
      el-button(@click="clickBtn"  type="primary" size="mini") {{config.label}}    
</template>
<script>

export default {
  props: ['config', 'value', 'readonly', 'isDetailsPage', 'size'],
  data() {
    return {
    }
  },
  created() {
  },
  mounted() {
  },
  methods: {
    clickBtn() {
      this.$emit('input', !this.value)
    },
  },
}
</script>
<style lang="scss" scoped>
</style>
